<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://java.sun.com/jsf/facelets"
                template="./../../_template.xhtml"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:p="http://primefaces.org/ui"
                xmlns:f="http://xmlns.jcp.org/jsf/core">


    <ui:define name="centro">
        <h:form >

            <p:outputLabel value="Usuario" style="font-size: x-large" styleClass="labelInserir" /> 
            <p:fieldset styleClass="fieldsetInsert">
                <h:panelGrid columns="1">
                    <p:outputLabel value="Nome do funcionario:" for="nomeFunc" />

                    <p:selectOneMenu id="nomeFunc" value="#{usuarioBean.usuario.funcionario}" converter="entityConverter">
                        <f:selectItem itemLabel="Escolha um nome" noSelectionOption="true" />
                        <f:selectItems value="#{funcionarioBean.funcionarios}" var="funcionario" itemLabel="#{funcionario.nome}"/>
                    </p:selectOneMenu>
                </h:panelGrid>
            </p:fieldset>
        </h:form>

    </ui:define>

</ui:composition>


